package com.dmai.capacity.platform.oauth.common.mapper;

import com.dmai.capacity.platform.common.model.OauthUserBillMonth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 月度账单
 *
 * @author
 * @email
 * @date 2024-03-26 21:17:05
 */
@Mapper
public interface OauthUserBillMonthDao {

    int save(OauthUserBillMonth bill);

    int update(OauthUserBillMonth bill);

    OauthUserBillMonth find(@Param("userid") Integer userid, @Param("clientId") String clientId, @Param("capabilityId") Integer capabilityId, @Param("year") Integer year, @Param("month") Integer month);

    List<OauthUserBillMonth> findAll(@Param("params") Map<String, Object> params);

}
